/// id : 10735
/// parentId : 524
/// children : []
/// siteId : null
/// deviceName : "工商业储能"
/// deviceSN : null
/// productId : null
/// productTypeId : null
/// component : 2

class SiteObverserModel {
//   SiteObverserModel({
//       num? id,
//       num? parentId,
//       List<dynamic>? children,
//       dynamic siteId,
//       String? deviceName,
//       dynamic deviceSN,
//       dynamic productId,
//       dynamic productTypeId,
//       num? component,}){
//     _id = id;
//     _parentId = parentId;
//     _children = children;
//     _siteId = siteId;
//     _deviceName = deviceName;
//     _deviceSN = deviceSN;
//     _productId = productId;
//     _productTypeId = productTypeId;
//     _component = component;
// }
//
//   SiteObverserModel.fromJson(dynamic json) {
//     _id = json['id'];
//     _parentId = json['parentId'];
//     if (json['children'] != null) {
//       _children = [];
//       json['children'].forEach((v) {
//         _children?.add(Dynamic.fromJson(v));
//       });
//     }
//     _siteId = json['siteId'];
//     _deviceName = json['deviceName'];
//     _deviceSN = json['deviceSN'];
//     _productId = json['productId'];
//     _productTypeId = json['productTypeId'];
//     _component = json['component'];
//   }
//   num? _id;
//   num? _parentId;
//   List<dynamic>? _children;
//   dynamic _siteId;
//   String? _deviceName;
//   dynamic _deviceSN;
//   dynamic _productId;
//   dynamic _productTypeId;
//   num? _component;
// SiteObverserModel copyWith({  num? id,
//   num? parentId,
//   List<dynamic>? children,
//   dynamic siteId,
//   String? deviceName,
//   dynamic deviceSN,
//   dynamic productId,
//   dynamic productTypeId,
//   num? component,
// }) => SiteObverserModel(  id: id ?? _id,
//   parentId: parentId ?? _parentId,
//   children: children ?? _children,
//   siteId: siteId ?? _siteId,
//   deviceName: deviceName ?? _deviceName,
//   deviceSN: deviceSN ?? _deviceSN,
//   productId: productId ?? _productId,
//   productTypeId: productTypeId ?? _productTypeId,
//   component: component ?? _component,
// );
//   num? get id => _id;
//   num? get parentId => _parentId;
//   List<dynamic>? get children => _children;
//   dynamic get siteId => _siteId;
//   String? get deviceName => _deviceName;
//   dynamic get deviceSN => _deviceSN;
//   dynamic get productId => _productId;
//   dynamic get productTypeId => _productTypeId;
//   num? get component => _component;
//
//   Map<String, dynamic> toJson() {
//     final map = <String, dynamic>{};
//     map['id'] = _id;
//     map['parentId'] = _parentId;
//     if (_children != null) {
//       map['children'] = _children?.map((v) => v.toJson()).toList();
//     }
//     map['siteId'] = _siteId;
//     map['deviceName'] = _deviceName;
//     map['deviceSN'] = _deviceSN;
//     map['productId'] = _productId;
//     map['productTypeId'] = _productTypeId;
//     map['component'] = _component;
//     return map;
//   }

}